import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//根据typeCode和itemValue查询子项
export const queryChildByTypeCodeAndItemValue = (data?: object) => {
  return http.request<ResultTable>("post", `/account/api/v1/publish/dictItem/queryChildByTypeCodeAndItemValue`, {
    data
  });
};

//根据typeCode和itemValue查询全部树
export const dictItemqueryListByTypeCode = (data?: object) => {
  return http.request<ResultTable>("post", `/account/api/v1/publish/dictItem/queryListByTypeCode`, {
    data
  });
};

//废液 查询列表
export const getqueryListPage = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/queryListPage`, {
    data
  });
};

//废液 新增
export const liquidAdd = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/add`, {
    data
  });
};

//废液 更新
export const liquidUpdate = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/update`, {
    data
  });
};

//废液 删除
export const liquidDelete = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/delete`, {
    data
  });
};

//废液 批量删除
export const liquidbatchDelete = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/batchDelete`, {
    data
  });
};
//固体 批量删除
export const solidbatchDelete = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/solid/batchDelete`, {
    data
  });
};
//废液 删除文件接口
export const liquidFileDelete = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/file/delete`, {
    data
  });
};

//废液 详情
export const liquidqueryDetail = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/queryDetail`, {
    data
  });
};
//废液 导出
export const liquidExport = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/export`, {
    data
  });
};

//运行操作记录 手动 查询列表
export const handoverRunOperationManualqueryListPage = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverRunOperationManual/queryListPage`, {
    data
  });
};

//运行操作记录 手动 新增
export const handoverRunOperationManualadd = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverRunOperationManual/add`, {
    data
  });
};

//运行操作记录 手动 删除
export const handoverRunOperationManualdelete = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverRunOperationManual/delete`, {
    data
  });
};

//运行操作记录 手动 查询详情
export const handoverRunOperationManualqueryDetail = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverRunOperationManual/queryDetail`, {
    data
  });
};

//运行操作记录 手动 修改
export const handoverRunOperationManualupdate = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverRunOperationManual/update`, {
    data
  });
};

//异常处理事项 查询列表
export const handoverExceptionHandlequeryListPage = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverExceptionHandle/queryListPage`, {
    data
  });
};

//运行操作记录 手动 新增
export const handoverExceptionHandleadd = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverExceptionHandle/add`, {
    data
  });
};

//运行操作记录 手动 删除
export const handoverExceptionHandledelete = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverExceptionHandle/delete`, {
    data
  });
};

//异常处理事项 查询详情
export const handoverExceptionHandleDetail = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverExceptionHandle/queryDetail`, {
    data
  });
};

//异常处理事项 查询列表
export const handoverExceptionHandleupdate = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/handoverExceptionHandle/update`, {
    data
  });
};

//废液 接收单位下拉框
export const liquidreceiveCompanyName = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/receiveCompanyName`, {
    data
  });
};

//废液 废液名称下拉框
export const receiveName = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/receiveLiquidName`, {
    data
  });
};

//固废名称下拉框
export const receiveName2 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/solid/receiveSolidName`, {
    data
  });
};

//危险废弃物下拉
export const receiveNamedanger = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/receiveHazardName`, {
    data
  });
};

//一般废液 查用量
export const liquidqueryContactUseInfo = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/queryContactUseInfo`, {
    data
  });
};

//一般固废 查用量
export const solidqueryContactUseInfo = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/solid/queryContactUseInfo`, {
    data
  });
};
